//
//  GoodsDetailBottomView.h
//  TerritoryShopkeeper
//
//  Created by xiaowu on 2017/12/20.
//  Copyright © 2017年 ZDQK. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GoodsDetailViewController.h"
#import "GoodDetailModel.h"

@interface GoodsDetailBottomView : UIView

@property (nonatomic, weak) IBOutlet UIView *view;

@property (weak, nonatomic) IBOutlet UIImageView *serviceImageView;
@property (weak, nonatomic) IBOutlet UIButton *serviceButton;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *serviceButtonWidth;

@property (weak, nonatomic) IBOutlet UIImageView *collectImageView;
@property (weak, nonatomic) IBOutlet UIButton *collectButton;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *collectButtonWidth;

@property (weak, nonatomic) IBOutlet UIImageView *cartImageView;
@property (weak, nonatomic) IBOutlet UIButton *cartButton;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *cartButtonWidth;

@property (weak, nonatomic) IBOutlet UIView *addCartBackView;
@property (weak, nonatomic) IBOutlet UIView *buyBackView;
@property (weak, nonatomic) IBOutlet UIButton *addCartButton;
@property (weak, nonatomic) IBOutlet UIButton *buyButton;
@property (weak, nonatomic) IBOutlet UIView *creditsBackView;
@property (weak, nonatomic) IBOutlet UIButton *creditsButton;

- (void)setBottomValueWith:(GoodDetailModel *)model type:(GoodsDetailViewControllerType)type;

@property (nonatomic, copy) void (^block)(NSInteger index);
@end
